package org.example.mq.service.impl;

import com.alibaba.fastjson2.JSON;
import org.example.mq.dao.MqMessageDao;
import org.example.mq.entity.MqMessageEntity;
import org.example.mq.service.MqMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@Service
public class MqMessageServiceImpl implements MqMessageService {

    @Autowired
    private MqMessageDao mqMessageDao;

    /**
     * 添加发送失败的消息
     * @param message
     * @return
     */
    @Override
    public int addMqMessage(MqMessageEntity message) {
        return mqMessageDao.saveMqMessage(message);
    }
}
